<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Free Cont&aacute;bil - <?php echo $titulo ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="css/style.css"  />
</head>

<body>
<?php   
	include("menu.php");
?>
<form name=form id=form action="" method="post" class="painel"
	style="text-align: center; background-color: #F8F8FF">
<?php 
	include("navegacao.php");
?>
<table cellpadding="4" cellspacing="2" border="0" align="center" class="tabela">
	<thead>
		<tr class="tituloTabela">
			<th style="width: 30px">
				<img src='imagens/add.gif' onClick='inserir()'
				style='cursor: pointer' alt='Incluir <?php print($titulo) ?>'
				title='Incluir <?php print($titulo) ?>'>
				<?php if($paginaPdf) { ?>
				<img src='imagens/pdf.gif' style='cursor: pointer'
					onclick="window.open('<?php echo $paginaPdf  ?>', '_blank')"
					title='Listar PDF' />
				<?php } ?>
				</th>
				<?php
				foreach ($colunas as $coluna) {
					print("<th>$coluna</th>");
				}
				?>
		</tr>
	</thead>
	<tbody>
	<?php
	while ($resultSet = mysql_fetch_array($limite, MYSQL_NUM)) {
		if ((++$linhaCor % 2) != 0)
		print("<tr class='linhaPar'>");
		else
		print("<tr class='linhaImpar'>");
		print("<td style='width: 3%'><div onmouseover='firstChild.style.visibility=\"visible\"'
									onmouseout='firstChild.style.visibility=\"hidden\"'
									style='width: 35px; text-align: center}'><div style='visibility: hidden;'>
                             	<img src='imagens/remove.png' onClick='excluir(" . $resultSet[0] . ")' style='cursor:pointer' alt='Excluir" . $titulo . "&nbsp;" . $resultSet[0] ."'>
                             	<img src='imagens/edit.gif' onClick='alterar(" . $resultSet[0] . ")' style='cursor:pointer' alt='Alterar" . $titulo . "&nbsp;" . $resultSet[0] ."'>
                             	</td>");
		foreach ($resultSet as $key => $campo) {
			echo "<td style='width: $larguras[$key]; text-align: $alinhamentos[$key]'>$campo</td>";
		}
		print("</tr>");
	}
	?>
	</tbody>
</table>
<input type=hidden name=formAction id=formAction>
<input type=hidden name=keyValue id=keyValue>
<input type=hidden name=pageBack id=pageBack>
</form>
<?php 
	include("acoes.php");
?>
</body>
</html>